import {CFormGroupProps} from "@/components/CProForm/CFormItem/type";
const fields: CFormGroupProps<any>[] = [
  {
    itemList: [
      {
        name: "title",
        label: "标题",
        labelAlign: "right",
        rules: [
          {
            message: "标题是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入标题",
      }
    ]
  },
  {
    itemList: [
      {
        name: "category",
        label: "分类id",
        labelAlign: "right",
        rules: [
          {
            message: "分类id是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入分类id",
      }
    ]
  },
  {
    itemList: [
      {
        name: "content",
        label: "内容",
        labelAlign: "right",
        type: "quill",
        rules: [
          {
            message: "内容是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入内容",
      }
    ]
  },
  {
    itemList: [
      {
        name: "picUrl",
        label: "图片",
        labelAlign: "right",
        type:"upload",
        componentProps:{
          listType: "picture-card",
          showUploadList: false,
          button: false
        },
        rules: [
          {
            message: "状态是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入状态",
      }
    ]
  },
]
export default fields;
